//
//  FunnyViewController.swift
//  DouYuZB
//
//  Created by 梁森 on 2020/4/25.
//  Copyright © 2020 梁森. All rights reserved.
//

import UIKit

class FunnyViewController: BaseAnchorViewController {

    private lazy var funnyVM:FunnyViewModel = FunnyViewModel()
}

extension FunnyViewController{
    override func setupUI() {
      print("FunnyViewController😄😄😄😄");
        super.setupUI()
        let flowLayout = collectionView.collectionViewLayout as! UICollectionViewFlowLayout
        flowLayout.headerReferenceSize = CGSize.zero
        collectionView.contentInset = UIEdgeInsets(top: 10, left: 0, bottom: 0, right: 0)
    }
}
extension FunnyViewController{
    override func getData() {
        baseVM = funnyVM
        funnyVM.requestFunnyData {
            self.collectionView.reloadData()
            
            self.requestDataFinish()
        }
    }
}
extension FunnyViewController{
    
    
}
